// $Id


/**
 * ReversiButton Qt widget header file.
 *
 * @file ReversiButton.h
 * @author Wim Leers
 */


#ifndef REVERSIBUTTON_H
#define REVERSIBUTTON_H

#include <QToolButton>

class ReversiButton : public QToolButton {
	Q_OBJECT

	public:
		ReversiButton(int x = 0, int y = 0, QWidget * parent = 0);
		virtual ~ReversiButton(void) {}
		void SetX(int x) { m_x = x; }
		void SetY(int y) { m_y = y; }
		int GetX(void) { return m_x; }
		int GetY(void) { return m_y; }

	signals:
		void ClickedButtonWithCoords(int x, int  y);

	private slots:
		void CatchClicked(void);
		
	private:
		int m_x, m_y;
};

#endif
